package com.rt.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rt.system.mapper.RtAssemblyDifficultyMapper;
import com.rt.system.domain.RtAssemblyDifficulty;
import com.rt.system.service.IRtAssemblyDifficultyService;

/**
 * 策略难易度Service业务层处理
 * 
 * @author Yg
 * @date 2022-05-05
 */
@Service
public class RtAssemblyDifficultyServiceImpl implements IRtAssemblyDifficultyService 
{
    @Autowired
    private RtAssemblyDifficultyMapper rtAssemblyDifficultyMapper;

    /**
     * 查询策略难易度
     * 
     * @param id 策略难易度主键
     * @return 策略难易度
     */
    @Override
    public RtAssemblyDifficulty selectRtAssemblyDifficultyById(Long id)
    {
        return rtAssemblyDifficultyMapper.selectRtAssemblyDifficultyById(id);
    }

    /**
     * 查询策略难易度列表
     * 
     * @param rtAssemblyDifficulty 策略难易度
     * @return 策略难易度
     */
    @Override
    public List<RtAssemblyDifficulty> selectRtAssemblyDifficultyList(RtAssemblyDifficulty rtAssemblyDifficulty)
    {
        return rtAssemblyDifficultyMapper.selectRtAssemblyDifficultyList(rtAssemblyDifficulty);
    }

    /**
     * 新增策略难易度
     * 
     * @param rtAssemblyDifficulty 策略难易度
     * @return 结果
     */
    @Override
    public int insertRtAssemblyDifficulty(RtAssemblyDifficulty rtAssemblyDifficulty)
    {
        return rtAssemblyDifficultyMapper.insertRtAssemblyDifficulty(rtAssemblyDifficulty);
    }

    /**
     * 修改策略难易度
     * 
     * @param rtAssemblyDifficulty 策略难易度
     * @return 结果
     */
    @Override
    public int updateRtAssemblyDifficulty(RtAssemblyDifficulty rtAssemblyDifficulty)
    {
        return rtAssemblyDifficultyMapper.updateRtAssemblyDifficulty(rtAssemblyDifficulty);
    }

    /**
     * 批量删除策略难易度
     * 
     * @param ids 需要删除的策略难易度主键
     * @return 结果
     */
    @Override
    public int deleteRtAssemblyDifficultyByIds(Long[] ids)
    {
        return rtAssemblyDifficultyMapper.deleteRtAssemblyDifficultyByIds(ids);
    }

    /**
     * 删除策略难易度信息
     * 
     * @param id 策略难易度主键
     * @return 结果
     */
    @Override
    public int deleteRtAssemblyDifficultyById(Long id)
    {
        return rtAssemblyDifficultyMapper.deleteRtAssemblyDifficultyById(id);
    }
}
